import api from './index'

export const login = (credentials) => {
  return api.post('/auth/login/', credentials)
}

export const register = (userData) => {
  return api.post('/auth/register/', userData)
}

export const logout = () => {
  return api.post('/auth/logout/')
}

export const getUserInfo = () => {
  return api.get('/auth/user/')
}

export const updateProfile = (userData) => {
  return api.put('/auth/profile/', userData)
}
